﻿using Prism.Commands;
using Prism.Ioc;
using Prism.Services.Dialogs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PrismDialogDemo
{
    public class MainWindowViewModel
    {
        public DelegateCommand ShowDialogCommand { get; set; }

        IDialogService _dialogService;
        public MainWindowViewModel(IDialogService dialogService)
        {
            _dialogService = dialogService;
            ShowDialogCommand = new DelegateCommand(ShowDialog);
        }

        private void ShowDialog()
        {
            _dialogService.ShowDialog("SubUC");
        }
    }
}
